home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / os2 / pc2_140.zip / PC2.HLP (.txt) < prev    next >
OS/2 Help File  |  1993-04-17  |  32KB  |  700 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. PC/2 Help for Help ΓòÉΓòÉΓòÉ
  3.  
  4.                      PC/2 - Program Commander/2 Version 1.40
  5.                       for IBM OS/2 2.x Presentation Manager
  6.                      Copyright (C) by Stangl Roman 04, 1993
  7.  
  8. Please select one of the following topics for further information: 
  9.  
  10. o About the utility PC/2 
  11. o Installing PC/2 
  12. o Using PC/2 as a WPS addon 
  13. o Concepts of the Popup-Menu 
  14. o Starting a Program from PC/2 
  15. o Setup the Popup-Menu 
  16.  
  17.    - Adding a Submenu 
  18.    - Adding a Program 
  19.    - Resorting a (Sub)menu 
  20.    - Run-time parameters 
  21.  
  22. o Error messages 
  23.  
  24. <Backward>                  <Forward> 
  25.  
  26.  
  27. ΓòÉΓòÉΓòÉ 2. Help for About PC/2 ΓòÉΓòÉΓòÉ
  28.  
  29.                      PC/2 - Program Commander/2 Version 1.40
  30.                       for IBM OS/2 2.x Presentation Manager
  31.                      Copyright (C) by Stangl Roman 04, 1993
  32.  
  33.                      University for Business Administration
  34.                          and Management Vienna, Austria
  35.                           (Wirtschaftsuniversit╨öt Wien)
  36.  
  37. E-Mail: 
  38.  
  39. o 8650533@awiwuw11.wu-wien.ac.at 
  40. o Roman Stangl @ IBM Austria National Support BBS ((0043) 0222 21145 6600) 
  41.  
  42. This program is classified as Freeware. Under the copyright, you are allowed 
  43. and encouraged to freely use, distribute or modify this program under the 
  44. following conditions: 
  45.  
  46. o The complete source code and all executables are included. This rule also 
  47.   applies for any modifications you made. 
  48. o You may only charge for the costs of duplicating. 
  49. o Any commercial use is prohibited without contacting me prior, except for 
  50.   incorporating the idea/code in any future release of OS/2 by IBM, however 
  51.   this clause doesn't apply for any private use. 
  52. o You don't want to port this utility to MS Windows or Windows NT (never 
  53.   there). 
  54.  
  55. You are encouraged to upload this utility to your favourite file-server or BBS. 
  56. Please ensure that no file is missing, if you change the archive to a different 
  57. compression scheme. 
  58.  
  59. If you find this program useful and want to honor the six weeks of work writing 
  60. this utility, you are welcome to send me a small fee of about 50 to 150 
  61. Austrian Schilling (about 5 to 15 dollar) to my home address. Of course you 
  62. don't need to pay again, if a new release of PC/2 comes out. Please send any 
  63. donations in cash, because it makes some troubles to exchange money orders or 
  64. similar in Austria! Any suggestions are of course welcome too. 
  65.  
  66. Thanks to all those, who sent me proposals and bug reports to improve this 
  67. utility! 
  68.  
  69. My home address is: 
  70.  
  71.   Roman Stangl 
  72.   Strebersdorferstrasse 46 
  73.   2103  Langenzersdorf, Austria 
  74.  
  75. <Backward>                  <Forward> 
  76.  
  77.  
  78. ΓòÉΓòÉΓòÉ 3. Installing PC/2 ΓòÉΓòÉΓòÉ
  79.  
  80. You have obviously started PC/2 once, because you are reading this help panel. 
  81. The installation is just straight forward with the REXX script that installs 
  82. PC/2, however there are some points to notice: 
  83.  
  84. o The installation installed an icon on the Desktop and started the help panels 
  85.   of PC/2. To ensure that OS/2 starts PC/2 automatically the next time you boot 
  86.   your system, you must start PC/2 again (you then can notice that the 
  87.   background behind the icon changes). If you have added SET 
  88.   RESTARTOBJECTS=STARTUPFOLDERSONLY in your CONFIG.SYS then you must also add a 
  89.   shadow of PC/2 to your startup folder to ensure PC/2 is started the next time 
  90.   you boot OS/2. 
  91.  
  92. o PC/2 requires the file PC2HOOK.DLL to be accessible. PC/2 tries to find this 
  93.   file either in the directory, where PC/2 was started from, or in a path that 
  94.   is included in the environment variable LIBPATH. PC/2 will issue an error 
  95.   message, if it can't find it. The file PC2.HLP may be either accessible in 
  96.   the directory, where PC/2 is started from, or in a path that is included in 
  97.   the environment variable HELP. If you have problems running PC/2, ensure, 
  98.   that the working directory of PC/2 is accessible by these variables in your 
  99.   CONFIG.SYS. 
  100.  
  101. o The installation assumes that you are using the default profile Pc2.cfg 
  102.   containing a standart pre-defined Popup-Menu. If you want to use an other 
  103.   Popup-Menu, you have to open the Settings of PC/2 and add your preferred 
  104.   profile in the Parameters entryfield. Please click for the next help panel to 
  105.   see the syntax of the command-line parameters of PC/2. This command-line 
  106.   parameters then must be added to the Parameters entryfield. 
  107.  
  108. o You can only run one copy of PC/2 concurrently. 
  109.  
  110. o If you select a DOS-Program to be started via PC/2, the time-slice of their 
  111.   sessions is optimized (the DOS-Settings are modified to IDLE_SECONDS=5 
  112.   IDLE_SENSITIVITY=100) to get a better performance. This is useful for most 
  113.   DOS games. 
  114.  
  115. o You may use PC/2 with or without the WPS installed, you may even use PC/2 as 
  116.   a replacement for the WPS. To do so you must install PC/2 first. Then you 
  117.   have to ensure that PC2HOOK.DLL is accessible by PC/2. PC/2 tries to find 
  118.   this file in the directory where PC/2 is started from or in a path pointed to 
  119.   by the LIBPATH environment variable in your CONFIG.SYS. You also have to 
  120.   ensure that PC2.HLP is accessible in the PC/2 directory or in a path pointed 
  121.   to by the HELP environment variable in your CONFIG.SYS file. The default 
  122.   access ".;" is not sufficient. Then replace the statement SET 
  123.   RUNWORKPLACE=C:\OS2\PMSHELL.EXE with SET RUNWORKPLACE=[path]PC2.EXE where 
  124.   [path] is the pathname of the directory you installed PC/2. The next time you 
  125.   boot, PC/2 will be started as a replacement for the WPS. Be carefull, OS/2 
  126.   seems to dislike any parameters added to the program that is started as the 
  127.   WPS! 
  128.  
  129.   Caution! PC/2 was not tested on all OS/2 versions or installed software and 
  130.   hardware (simply because I don't have them), so there may be bugs!. Of course 
  131.   you can start the WPS from a command prompt by typing START PMSHELL or add a 
  132.   corresponding entry to PC/2. 
  133.  
  134. <Backward>                  <Forward> 
  135.  
  136.  
  137. ΓòÉΓòÉΓòÉ 4. General Help for PC/2 ΓòÉΓòÉΓòÉ
  138.  
  139. PC/2 - Program Commander is an addon for the WPS (Workplace Shell). The user 
  140. can configure a menu that pops up, when the left mouse button is clicked 
  141. anywhere on the Desktop. F.e. the Popup-Menu might look like: 
  142.  
  143. You have selected the item Prompts, which is a Submenu containing four more 
  144. items. F.e. the item OS/2 Window starts a windowed OS/2 command prompt, when 
  145. selected. This Popup-Menu is fully configurable, you may add, change or remove 
  146. items. An item can either be a Submenu containing more items, or the name of a 
  147. program. 
  148.  
  149. Only the first Submenu PC/2 Setup cannot be modified. This Submenu is used to 
  150. setup PC/2 and to get help. 
  151.  
  152. Your configuration is read from the default profile Pc2.cfg each time PC/2 is 
  153. started and saved every time you made changes. You can of course overwrite the 
  154. default configuration filename to a file named Filename.ext by invoking PC/2 
  155. with the following commandline option: 
  156.  
  157. PC2 [-Profile Filename.ext] or 
  158.  
  159. PC2 [/Profile Filename.ext] 
  160.  
  161. where Filename.ext conforms to a filename of a PC/2 profile. Both FAT and HPFS 
  162. filename naming convention is accepted. A few sample configuration files are 
  163. provided in this package. 
  164.  
  165. As the default, the Popup-Menu appears if you double-click once on the Desktop, 
  166. if no option or the following option is specified: 
  167.  
  168. PC2 [-DoubleClick] or 
  169.  
  170. PC2 [/DoubleClick] 
  171.  
  172. You may select a single-click instead, by invoking PC/2 with the following 
  173. commandline option: 
  174.  
  175. PC2 [-SingleClick] or 
  176.  
  177. PC2 [/SingleClick] 
  178.  
  179. Please be sure not to combine both click behavior options. Of course the 
  180. options changing the click behavior and the configuration filename options may 
  181. be combined. 
  182.  
  183. Because some people use PC/2 as a WPS replacement, PC/2 contains a Menuitem to 
  184. ShutDown OS/2. By selecting this entry, it is safe to power off your PS/2 or PC 
  185. after all disk activity has been stopped, although no windows are closed. If 
  186. you run PC/2 as a WPS replacement and may want to start the WPS either by 
  187. starting PMSHELL.EXE from a command prompt or by starting a PMSHELL Menuitem 
  188. with PC/2. You then can follow the WPS initialization by heavy disk access and 
  189. buildup of your Desktop with objects. PC/2 requires to know the Desktop (in 
  190. technical terms the window handle of the Desktop) to be able to catch mouse 
  191. button 1 clicks. If you start the WPS the Desktop changes too. Therefor PC/2 
  192. checks regularily (about every 2.5 seconds) if the Desktop has changed, so you 
  193. may have to wait a little bit, after the WPS was started, that PC/2 recognizes 
  194. mouse clicks again.. 
  195.  
  196. I would strongly recommend to start PC/2 during OS/2 boot. If you don't want to 
  197. use the default profile, don't forget to add /Profile Filename.exe to the 
  198. Parameters entryfield in the Settings of PC/2. 
  199.  
  200. The reason why I wrote this utility was primarily, that many programs installed 
  201. on a system require many folders and icons on the Desktop. But to start a 
  202. program, I don't want to open and close folders, so I made shadows on the 
  203. Desktop messing it up. The solution I prefer is to click on the Desktop, 
  204. getting immediately a menu and selecting the application from this menu. So 
  205. PC/2 may help you to start your programs quickly, without needing to open and 
  206. close folders. 
  207.  
  208. <Backward>                  <Forward> 
  209.  
  210.  
  211. ΓòÉΓòÉΓòÉ 5. Concepts of PC/2 ΓòÉΓòÉΓòÉ
  212.  
  213. The basic idea behind PC/2 is to have an configurable Popup-Menu available, to 
  214. start programs quicky, without having to open and close folders. 
  215.  
  216. The Popup-Menu, popped up when you click the left mouse button anywhere on the 
  217. Desktop (just like the right one for shutdown), consists of so-called items. An 
  218. item may be a Submenu, which contains further items, or the title of an 
  219. Application. A Submenu contains a little arrow right beside the title of the 
  220. Submenu. 
  221.  
  222. You can imagine this Popup-Menu as a tree, with applications as leaves and 
  223. Submenus as nodes. PC/2 allows you to freely build your own tree. To do so you 
  224. have to click on the Desktop with the left mouse button and to select PC/2 
  225. Setup  Configure PC/2. A dialog box appears, where you can add, modify or 
  226. remove Submenus and Applications. The listbox displays all Submenus and 
  227. Applications of one level (like a cut through the tree). Of course you may 
  228. change this level up and down. 
  229.  
  230. Once you have configured your tree of Submenus and Applications, just press Ok 
  231. to take them into effect and save them to the profile or Cancel to take them 
  232. into effect without saving. 
  233.  
  234. <Backward>                  <Forward> 
  235.  
  236.  
  237. ΓòÉΓòÉΓòÉ 6. Help for starting a program via PC/2 ΓòÉΓòÉΓòÉ
  238.  
  239. After you have configured the PC/2 Popup-Menu, you click on the Desktop with 
  240. the left mouse button, select the Application you want to start and click on 
  241. it. The Application will be started as if you were clicking on an icon. 
  242.  
  243. One advantage starting an Application this way is, that you can manipulate many 
  244. parameters on how the Application is started, one thing you can't do with many 
  245. icons. F.e. you can start it invisible (useful for a backup program), making it 
  246. only visible by selecting it from the tasklist. You may also specify the size 
  247. of the Application or to start it in the background. 
  248.  
  249. You can also start WPS objects, f.e. the Drives object or the Selective 
  250. Install. If you have an WPS object, that represents a seamless WIN-OS2 
  251. application, you may even launch such a session. Be warned! - you have to 
  252. create an WPS Object with MAKEOBJ.CMD first to define an Object ID (Identifier) 
  253. with that Object, to enable PC/2 to get this ID. 
  254.  
  255. To close an Application, select the corresponding option from the Application 
  256. or terminate it from the tasklist. 
  257.  
  258. <Backward>                  <Forward> 
  259.  
  260.  
  261. ΓòÉΓòÉΓòÉ 7. Help for PC/2 Configuration ΓòÉΓòÉΓòÉ
  262.  
  263. In the listbox, all Submenus and Applications of one level (imagine as a cut 
  264. through the tree) are displayed. A Submenu has an arrow right beside it. F.e. 
  265. assume the listbox contains 3 Submenus and 2 Appliations resulting in the 
  266. following Popup-Menu: 
  267.  
  268. You may want to get into the Submenu Prompts. Just select the Submenu Prompts 
  269. an click on the button Level Down >>. The listbox will now be filled with all 
  270. Submenus and Applications of the Submenu Prompts. To get one level up, simply 
  271. press << Level Up. If nothing seems to change, you may be either at the highest 
  272. level (the root of the tree) or at the deapest level (a leaf of the tree) of a 
  273. Submenu. 
  274.  
  275. To configure the Popup-Menu just select an item. 
  276.  
  277. o To change or to remove this item use the buttons Change Entry or Remove 
  278.   Entry. Either a new dialog appears allowing you to change the item, or the 
  279.   item will be removed. 
  280. o To add a Submenu or an Application press the buttons Add Submenu or Add 
  281.   Program. A new dialog is displayed allowing you to add a new Submenu or 
  282.   Application, after pressing Ok in this dialog, the Submenu or Application 
  283.   will be inserted after the selected item, or at the end of the list if no 
  284.   item is selected. 
  285. o To resort a Submenu press the button Resort Menu. A new dialog is displayed 
  286.   allowing you to resort the currently listed Submenu. Press here to get more 
  287.   information about the Resort dialog. 
  288.  
  289. If the listbox is empty, you can't remove or change anything. You also can't 
  290. select any item, but in this case you can add a Submenu or an Application by 
  291. just pressing the buttons, without needing to select an item. 
  292.  
  293. Press Ok to write the configuration to the profile, or press Cancel to keep the 
  294. changes only in memory. Both buttons will dismiss the dialog. 
  295.  
  296. Example 1    Example 2 
  297.  
  298. <Backward>                  <Forward> 
  299.  
  300.  
  301. ΓòÉΓòÉΓòÉ 7.1. Setup example 1 ΓòÉΓòÉΓòÉ
  302.  
  303. Assume the listbox contains the following items resulting in the following 
  304. Popup-Menu: 
  305.  
  306. You want to remove the Submenu Editors, rename the Submenu Tools to Utilities 
  307. and add a Submenu Demos. 
  308.  
  309.  1. Select the item Editors. You can now press the button Remove Entry to 
  310.     remove the submenu, but only if this Submenu is empty. If it isn't empty, 
  311.     get into this Submenu by pression Level Down >> and remove all items. 
  312.  2. To rename Tools to Utilities select the item Tools and press the button 
  313.     Change Entry. A dialog box appears allowing you to rename this item. 
  314.  3. Select the item, after which you want to insert the new Submenu. Then press 
  315.     the button Add Submenu to add one. A dialog box appears allowing you to 
  316.     enter the title of a new Submenu. 
  317.  
  318.  
  319. ΓòÉΓòÉΓòÉ 7.2. Setup example 2 ΓòÉΓòÉΓòÉ
  320.  
  321. Assume that you have remove all items, leading to an empty listbox. Now you 
  322. want to add the Applications Backup and Terminal. 
  323.  
  324.  1. The listbox is empty, so you can't select any item. Just press the button 
  325.     Add Program and a dialog box appears, allowing you to enter all the data 
  326.     required for the new Application. 
  327.  2. Now the listbox contains the item Backup, select it and press the button 
  328.     Add Program a second time. Again you get a dialog box, where you enter the 
  329.     data for the Application Terminal. 
  330.  
  331.  
  332. ΓòÉΓòÉΓòÉ 8. Help for PC/2 Menu Installation ΓòÉΓòÉΓòÉ
  333.  
  334. This dialog is used to get a name for a Submenu, which is then added to the 
  335. Popup-Menu. You can enter whatever you like, f.e. to make a Submenu that 
  336. contains OS/2 utilities you might enter Utilities. 
  337.  
  338. If you have choosen in the previous dialog to change the name of a Submenu, 
  339. then overwrite the pre-entered text. 
  340.  
  341. Press Ok to accept, or press Cancel to ignore the data you entered. 
  342.  
  343. Examples 
  344.  
  345. <Backward>                  <Forward> 
  346.  
  347.  
  348. ΓòÉΓòÉΓòÉ 8.1. Menu installation examples ΓòÉΓòÉΓòÉ
  349.  
  350. Assume you have entered the following Submenu Titles: 
  351.  
  352. Title                 Purpose 
  353.  
  354. Prompts               You want to add a Submenu named Prompts, that contains 
  355.                       OS/2 and DOS, fullscreen and windowed command prompts. 
  356.  
  357. Spreadsheets          You want to add a Submenu named Spreadsheets for your 
  358.                       spreadsheet program like Lotus 123/G or Excel. 
  359.  
  360.  
  361. ΓòÉΓòÉΓòÉ 9. Help for PC/2 Program Installation ΓòÉΓòÉΓòÉ
  362.  
  363. This dialog is used to get the title, the path and filename, the working 
  364. directory and parameters of a Menuitem, which is then added to the Popup-Menu. 
  365. Additionally you can fine-tune the appearance of the program you want to add to 
  366. the Popup-Menu. However the standard selections should provide a basis that is 
  367. sufficient for most applications. 
  368.  
  369. Sometimes you want that you can enter a commandline parameter before an 
  370. application is started, f.e. assume that you want to be prompted for a text 
  371. file just before your text-editor is invoked. PC/2 allows you to be prompted 
  372. for commandline parameters in addition to static parameters before the 
  373. application is launched. Press on Commandline Parameters to find out more about 
  374. this feature. 
  375.  
  376. The standard file dialog is opened, if you pressed File Find. Then you can 
  377. easily find the program you want to add, the data of this program are inserted 
  378. automatically. If a batch file was selected, the batch file will be inserted as 
  379. a commandline parameter of a command processor. 
  380.  
  381. Alternatively PC/2 supports also Drag & Drop. You can f.e. use a Drives Object 
  382. to select one application to add to PC/2. Then drag it into a free area within 
  383. the dialog and drop it. PC/2 will insert the entryfields and application type 
  384. correspondingly. 
  385.  
  386. You may also add WPS Objects, either manually or by Drag & Drop. If you insert 
  387. an WPS Object correctly (I know this is a little bit particular) you may start 
  388. your objects via the PC/2 Popup Menu. To add WPS Objects you must know the 
  389. Object ID (Identifier), either for the preinstalled Objects from OS2_20.RC or 
  390. the Object ID defined with installation of one WPS Object by MAKEOBJ.CMD. 
  391.  
  392. If you have choosen in the previous dialog to change the data of a Program, 
  393. then overwrite or change the options you want. 
  394.  
  395. Press Ok to accept, or press Cancel to ignore the data you entered. 
  396.  
  397. For more information click on one of the following items: 
  398.  
  399. o Program Data 
  400. o Program Type 
  401. o Program Style 
  402. o Program Size & Position 
  403. o Program Priority 
  404.  
  405. Examples 
  406.  
  407. <Backward>                  <Forward> 
  408.  
  409.  
  410. ΓòÉΓòÉΓòÉ 10. Help for PC/2 Startup Parameters ΓòÉΓòÉΓòÉ
  411.  
  412. PC/2 allows you to replace the commandline parameters of your application 
  413. completly or partly. 
  414.  
  415. F.e. assume you have a TCP/IP communications package installed on your system. 
  416. You also have added an Menuitem that start a file transfer program named FTP. 
  417. FTP requires as a parameter the name of the host you want to connect to. To 
  418. prompt you for this parameter immediately before FTP is started, you would 
  419. modify the parameters entryfield of the PC/2 Program Installation dialog like 
  420. [Please enter host address] 
  421.  
  422. Further assume that you selected the Menuitem FTP from the Popup-Menu. Just 
  423. before FTP is started, a dialog box is displayed, requesting the host address 
  424. from you. F.e. you will type ftp-os2.nmsu.edu, then the file transfer program 
  425. will be invoked as if you typed FTP ftp-os2.nmsu.edu from a commandline. 
  426.  
  427. Generally the syntax for the commandline parameters is: 
  428.  
  429. Parameter(s) 1 [Text] Parameter(s) 2 
  430.  
  431. Assume you typed FirstFile.doc as the first and ThirdFile.doc as the second 
  432. parameter. You will be asked by a dialog box, what to replace [Text] with. 
  433. Assume you entered MyFile.doc then the program will be invoked with the 
  434. commandline parameters FirstFile.doc MyFile.doc ThirdFile.doc. The string 
  435. [Text] would have been replaced by MyFile.doc. Of course both parameters may be 
  436. omited, both may contain more than one parameter or only one of them may 
  437. present. Omiting [Text] would start the application without asking you for a 
  438. commandline parameter prior. 
  439.  
  440. PC/2 allows you to edit commandline parameters similar to the WPS (open the 
  441. Settings notebook of any application, position the cursor into the Parameters 
  442. entryfield and press F1 or Help to get further information). 
  443.  
  444. Press Ok to accept the parameters you entered, or press Cancel to replace the 
  445. commandline parameters by an empty string. 
  446.  
  447.  
  448. ΓòÉΓòÉΓòÉ 10.1. Program installation examples ΓòÉΓòÉΓòÉ
  449.  
  450. Assume you want to add Lotus 123/G: 
  451.  
  452. Fieldname             You would enter 
  453.  
  454. Program Title:        Lotus 123/G 
  455.  
  456. Path and Filename:    c:\123g\123g.exe 
  457.  
  458. Working Directory:    c:\123g 
  459.  
  460. Parameters:           (none) 
  461.  
  462. Lotus 123/G is a Presentation Manager application so you would select 
  463. Presentation Manager as program type. The program style may be Maximized, 
  464. because more information is visible. The priority may be left at the default 
  465. selection No Change. 
  466.  
  467. Assume you want to add the WPS Object System Clock (located in the folder OS/2 
  468. System  System Setup): 
  469.  
  470. Fieldname             You would enter 
  471.  
  472. Program Title:        System Clock 
  473.  
  474. Path and Filename:    <WP_CLOCK> 
  475.  
  476. Working Directory:    (n/a) 
  477.  
  478. Parameters:           (n/a) 
  479.  
  480. The System Clock is a WPS Object, so WPS Object is selected as the program 
  481. type. You may have to look into the file OS2_20.RC to get the defined name of 
  482. preinstalled WPS Objects. Most settings are not available for WPS Objects. 
  483.  
  484. Assume you want to add the WPS Object seamless WIN-OS2 Clock. First you must 
  485. create an WPS Object with a known Object ID (Identifier) with MAKEOBJ.CMD, a 
  486. small REXX-utility supplied with PC/2. To do so, start MAKEOBJ.CMD and supply 
  487. the Object ID <WP_WIN_CLOCK> when you're asked to. Then open the newly created 
  488. Object Settings and change them as you usually do, when you want to make an 
  489. Object for a seamless WIN-OS2 session of the WIN-OS2 clock. After you have 
  490. created the WIN-OS2 clock object, you can drag it into this dialog of PC/2: 
  491.  
  492. Fieldname             You would enter 
  493.  
  494. Program Title:        Clock 
  495.  
  496. Path and Filename:    <WP_WIN_CLOCK> 
  497.  
  498. Working Directory:    (n/a) 
  499.  
  500. Parameters:           (n/a) 
  501.  
  502. The seamless WIN-OS2 Clock is a WPS Object, so WPS Object is used as the 
  503. program type. Assuming that you created the seamless WIN-OS2 clock object as 
  504. outlined before, then the Object ID is <WP_WIN_CLOCK>. If you had an WPS Object 
  505. before, and you don't know the Object ID, you have to create a new one with 
  506. MAKEOBJ.CMD, to define a known Object ID. 
  507.  
  508. Sorry, this may be a little complicated, but it is the only way I know to get a 
  509. known Object ID and the only way I know to start seamless WIN-OS2 sessions. 
  510.  
  511.  
  512. ΓòÉΓòÉΓòÉ 10.2. Program Data ΓòÉΓòÉΓòÉ
  513.  
  514. For a normal user it is the easiest way to use the following guidelines. 
  515. According to the type of application you add, some fields may not be editable 
  516. or visible: 
  517.  
  518. Fieldname             You would enter 
  519.  
  520. Program Title:        Here you enter the name, under which the program should 
  521.                       appear in the tasklist. For OS/2 and DOS windows, this 
  522.                       will be the title of the window. You may also name the 
  523.                       Objects here, you want to add. 
  524.  
  525. Path and Filename:    Here you enter the fully qualified path and filename. 
  526.                       F.e. you might enter c:\os2\cmd.exe to obtain an OS/2 
  527.                       command prompt, or c:\os2\mdos\qbasic.exe to start the 
  528.                       basic interpreter. 
  529.  
  530.                       Here you also enter the name of WPS Objects. WPS Objects 
  531.                       are referred either by their defined Object ID (Identity) 
  532.                       f.e. <WP_DRIVES> or <WP_INST> for preinstalled Objects, 
  533.                       of f.e. <WP_USER_CALC> or <WP_WIN_PBRUSH> for Objects 
  534.                       installed by the user with MAKEOBJ.CMD, a REXX-utility 
  535.                       supplied with PC/2. Preinstalled WPS Objects have usually 
  536.                       a defined name, you may need to take a look into the file 
  537.                       OS2_20.RC to get further information. 
  538.  
  539.                       PC/2 can only launch WPS Objects named by their defined 
  540.                       ID, so be carefull to get either the correct ID from 
  541.                       OS2_20.RC or to define an Object with a known ID with 
  542.                       MAKEOBJ.CMD For a user installed Objects, you can freely 
  543.                       use any name, preferably a descriptive name in the form 
  544.                       <WP_xxxx>. 
  545.  
  546.                       Sorry, this may be a little complicated, but it is the 
  547.                       only way I know to get a known Object ID and the only way 
  548.                       I know to start seamless WIN-OS2 sessions. You can't use 
  549.                       the Program Template to create Objects if you want them 
  550.                       to add to PC/2, because PC/2 can't obtain the Object ID 
  551.                       of such Objects. 
  552.  
  553. Working Directory:    Here you enter the directory where the EXE, HLP and DLL 
  554.                       files of your application are located. Before the 
  555.                       application is started, a change drive and change 
  556.                       directory call is made, to make this directory the 
  557.                       working directory. 
  558.  
  559. Parameters:           Here you enter the parameters passed to the application. 
  560.                       PC/2 allows you to be asked for commandline parameters 
  561.                       before the application is invoked. Press on Commandline 
  562.                       Parameters to find out more about this feature. Assume 
  563.                       that you want to use VIEW.EXE to view the command 
  564.                       reference, you would enter c:\os2\book\cmdref.inf. 
  565.  
  566. DOS Settings:         If you select as program type a DOS Full-Screen or DOS 
  567.                       Window, a multiline entryfield is displayed where you can 
  568.                       enter the DOS Settings you need. Default, the DOS 
  569.                       Settings IDLE_SECONDS=5 and IDLE_SENSITIVITY are added if 
  570.                       you create a DOS application for the first time. (You 
  571.                       have to spell the DOS Settings exactly as they are 
  572.                       displayed in the standard DOS Settings dialog - even then 
  573.                       some can't be set for whatever reasons there are.) 
  574.  
  575. File Find:            If you click on this button, the standard file dialog of 
  576.                       OS/2 is displayed where you can select the application 
  577.                       you want to install. The application parameters (f.e. 
  578.                       path) will then be inserted automatically in the 
  579.                       corresponding entryfields. 
  580.  
  581. Drag & Drop:          You can alternatively use the Drag & Drop operation to 
  582.                       install one application. Select one application from f.e. 
  583.                       a Drives object or from a filemanager, drag it into the 
  584.                       dialog to any area that accepts it and drop it. The 
  585.                       settings will be adjusted according to the application 
  586.                       you dragged into. You may also drag any WPS Object into 
  587.                       this dialog, but be carefull to verify the name of the 
  588.                       Object, because I don't know how to do this automatically 
  589.                       (you may need to look into OS2_20.RC for the exact 
  590.                       spelling of preinstalled Objects. 
  591.  
  592. For a power user, the data entered may be less. Because the OS/2 API 
  593. DosStartSession() is used to start the application, all rules for this API 
  594. apply as described in the toolkit. Hence you may leave the entryfield Path and 
  595. Filename blank and then select from the Program Type group an OS/2 or DOS 
  596. fullscreen or window, to get a command prompt. 
  597.  
  598. You may also start an appliciation indirectly through a secondary command 
  599. processor by specifying c:\os2\cmd.exe as the Path and Filename and use then 
  600. the /C or /K option of CMD.EXE in the Parameters entryfield. 
  601.  
  602.  
  603. ΓòÉΓòÉΓòÉ 10.3. Program Type ΓòÉΓòÉΓòÉ
  604.  
  605. Here you can select the type of application you want to add. By default, PC/2 
  606. tries to determine the type of an application you installed via the standard 
  607. file dialog or via Drag & Drop. 
  608.  
  609. You generally have to verify, that the Program Type setting corresponds to the 
  610. application you installed, for most programs you can use Determined by WPS if 
  611. you aren't sure. 
  612.  
  613. According to the Program Type that is selected, some settings may not be 
  614. editable or visible. 
  615.  
  616. OS/2 and DOS Fullscreen or Windows are only used, if you want to start a 
  617. command prompt as the application. In this case, you usually enter in the the 
  618. entryfield Path and Filename of the group Program Data the path of the 
  619. corresponding command processor. A advanced technique to select the type of 
  620. command processor only with these radiobuttons is described under the group 
  621. Program Data. 
  622.  
  623.  
  624. ΓòÉΓòÉΓòÉ 10.4. Program Style ΓòÉΓòÉΓòÉ
  625.  
  626. These selections should be self-explanatory, you can only change one of the 
  627. radiobuttons, but apply as many checkboxes as you want as the Program Style. 
  628. F.e. if you selected Minimized, Invisible and Background, the application will 
  629. be started minimized, in the background and invisible (this may make sense for 
  630. a backup program). 
  631.  
  632.  
  633. ΓòÉΓòÉΓòÉ 10.5. Program Size & Position ΓòÉΓòÉΓòÉ
  634.  
  635. Here you can use the checkbox to start an application with a preselected size 
  636. and position. If you select the checkbox Size, Position you will be able to 
  637. modify the size the started application should appear. 
  638.  
  639. If you deselect the checkbox, the data will be saved, but the application is 
  640. started ignoring the size and position you entered. 
  641.  
  642.  
  643. ΓòÉΓòÉΓòÉ 10.6. Program Priority ΓòÉΓòÉΓòÉ
  644.  
  645. At this level of development, I don't know how to change the priority of a 
  646. program started as an independent session, so these radiobuttons are 
  647. unavailable. I know how to change the priority started as a child of PC/2, but 
  648. if the parent application PC/2 fails (by a bug or a close from the tasklist) 
  649. all the childs are also terminated, which is surely unacceptable. 
  650.  
  651.  
  652. ΓòÉΓòÉΓòÉ 11. Help for PC/2 Resort ΓòÉΓòÉΓòÉ
  653.  
  654. This dialog box contains two listboxes, the left one that displays the 
  655. currently available Menuentries and the right one that displays the currently 
  656. resorted Menuentries. Select the first Menuentry from the left listbox and 
  657. press the Reorder button, to resort it to the right listbox. For the next 
  658. Menuentry(ies) repeat this procedure, until the left listbox is empty. 
  659.  
  660. You can cancel the resort before you have done any sort, but you have to resort 
  661. the complete Submenu once you made one resort operation. 
  662.  
  663. All sorted Menuentries in the right listbox can't be started with PC/2 until 
  664. you complete the resort by pressing OK. Warning! - You have to press OK in the 
  665. Confguration Dialog to write the resorted Menuentries structure to the 
  666. configuration file. 
  667.  
  668. <Backward>                  <Forward> 
  669.  
  670.  
  671. ΓòÉΓòÉΓòÉ 12. Help for PC/2 Errors ΓòÉΓòÉΓòÉ
  672.  
  673. PC/2 can't verify all user input for validity, so some user input may cause 
  674. some PC/2 functions to fail. In this case, a message box is displayed 
  675. containing the module and the sourcecode linenumber that failed. Also a error 
  676. message is displayed containing which error occured and what should be done to 
  677. resolve the problem. 
  678.  
  679. F.e. you might have configured to start the program VIEW.EXE by writing 
  680. c:\os3\view.exe in the entryfield Path and Filename in the Program Installation 
  681. dialog. This of course leads to an error, because when OS/2 tries to start this 
  682. item, it can't find the directory \os3\ simply because it should read \os2\. A 
  683. message box is displayed saying an error occured and that the user input should 
  684. be corrected. 
  685.  
  686. The messagebox has three buttons that may be pressed: 
  687.  
  688. Button                Result 
  689.  
  690. Abort                 PC/2 will be terminated and all unsaved data will be 
  691.                       lost. You have to restart PC\2 again. This button should 
  692.                       be the last one you select. 
  693.  
  694. Retry                 The error is ignored, you may need to correct your data 
  695.                       entered in the entryfields. 
  696.  
  697. Ignore                The error is ignored, you may need to correct your data 
  698.                       entered in the entryfields. 
  699.  
  700. <Backward>                  <Forward>